package com.loongtech.bi.manager.game;

import com.loongtech.bi.entity.game.EntityActiveRoleTaskStatusTimes;
import com.loongtech.core.jpa.manager.ManagerQueryCacheBase;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ActiveRoleTaskStatusTimesManager extends ManagerQueryCacheBase<EntityActiveRoleTaskStatusTimes> {
	private static final long serialVersionUID = 1L;
	
	public List<EntityActiveRoleTaskStatusTimes> getActiveRoleTaskStatusTimes(Date dateStart, Date dateEnd, String queryPlatform, String queryChannel, String queryServer, List<Integer> queryTaskName) {
        return findByQuery("from EntityActiveRoleTaskStatusTimes where day>=:dayStart and day<=:dayEnd and platformid = :queryPlatform and channelid = :queryChannel and serverid = :queryServer and taskid in(:taskid) ", "dayStart", dateStart, "dayEnd", dateEnd, "queryPlatform", queryPlatform, "queryChannel", queryChannel, "queryServer", queryServer, "taskid", queryTaskName);
    }
}
